import { _decorator, CCFloat, Component, Node, ParticleSystem2D, tween } from 'cc';
import { ClickRotate } from './ClickRotate';
const { ccclass, property } = _decorator;

@ccclass('ClickDoor')
export class ClickDoor extends Component {

    @property([Node])
    doors: Node[] = [];

    Click() {
        this.doors[0].active = !this.doors[0].active;
        this.doors[1].active = !this.doors[1].active;
    }
}


